<?php if ($this->pageCount): ?>
<hr />
<div class="dataTables_paginate paging_full_numbers" align="center">
<?php 
    if (isset($this->previous)){
          echo '<a class="previous paginate_button " href="' . $this->url(array('page' => $this->previous)). '"> &lt; Previous</a> ';
    }
    foreach ($this->pagesInRange as $page){
       if ($page != $this->current){
               echo  '<a class="paginate_button" href="' . $this->url(array('page' => $page)). '">' . $page . '</a> ';
      }else{
          echo "<a class=\"paginate_active\">$page</a>";
      }
   }
     if (isset($this->next)){
        echo '<a class="next paginate_button" href="' . $this->url(array('page' => $this->next)) . '">Next &gt;</a>';
       }
  ?>
</div>
<?php endif; ?>